<?php
require './vendor/autoload.php';
require './Detail.php';

use Yeevers\Api\YeeverseBaseClient;
use Yeevers\Api\YeeverseConfig;

// 创建请求数据数组
$data = [
    "parentMerchantNo" => "1020000189025321",
    "merchantNo"       => "1020000189025321",
    "merchantUserId"   => "90000001",
    "requestNo"        => uniqid(),
    "orderAmount"      => "0.01",
    "goodsInfo"        => "测试订单",
    "requestTime"      => date("Y-m-d H:i:s"),
];

// 发起请求, 返回 json 字符串
$requset = (new YeeverseBaseClient())->baseRequestV4(YeeverseConfig::$serverRoot . "/v4/rest/cashier", $data);

// 输出响应
print_r(json_decode($requset, true));
